package com.jic.market.request.rest.coupon;

import com.jic.market.request.rest.base.RestBaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: gaolanyu
 * @date: 2020-01-17
 * @remark:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "查询当前商品可以领取的优惠券")
public class CouponListOfGoodsRequest extends RestBaseRequest implements Serializable {

    @ApiModelProperty(value = "登录token")
    private String token;

    @ApiModelProperty(value = "商品code" )
    private String thirdProductCode;

    @NotNull(message = "商品id不能为空")
    @ApiModelProperty(value = "商品id", required = true)
    private Long mpId;

    @NotNull(message = "缺少 start 参数")
    @ApiModelProperty(value = "当前页" , required = true)
    private Integer start;

    @NotNull(message = "缺少 limit 参数")
    @ApiModelProperty(value = "当前页总条数" , required = true)
    private Integer limit;

}
